package cn.anecansaitin.firecrafting.common.capability.item;

import net.minecraft.core.NonNullList;
import net.minecraft.world.item.ItemStack;
import net.minecraftforge.items.ItemStackHandler;

public class SignaledItemStackHandler extends ItemStackHandler {
    private boolean changed = false;

    public SignaledItemStackHandler(int size) {
        super(size);
    }

    public boolean isChanged() {
        return changed;
    }

    public void setChanged(boolean changed) {
        this.changed = changed;
    }

    public NonNullList<ItemStack> getItems() {
        return stacks;
    }

    @Override
    protected void onContentsChanged(int slot) {
        changed = true;
    }

}
